import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/login_entity.dart';

LoginEntity $LoginEntityFromJson(Map<String, dynamic> json) {
	final LoginEntity loginEntity = LoginEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		loginEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		loginEntity.code = code;
	}
	final LoginData? data = jsonConvert.convert<LoginData>(json['data']);
	if (data != null) {
		loginEntity.data = data;
	}
	return loginEntity;
}

Map<String, dynamic> $LoginEntityToJson(LoginEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

LoginData $LoginDataFromJson(Map<String, dynamic> json) {
	final LoginData loginData = LoginData();
	final String? yrToken = jsonConvert.convert<String>(json['yrToken']);
	if (yrToken != null) {
		loginData.yrToken = yrToken;
	}
	final String? ryToken = jsonConvert.convert<String>(json['ryToken']);
	if (ryToken != null) {
		loginData.ryToken = ryToken;
	}
	final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
	if (picUrl != null) {
		loginData.picUrl = picUrl;
	}
	final String? nikeName = jsonConvert.convert<String>(json['nikeName']);
	if (nikeName != null) {
		loginData.nikeName = nikeName;
	}
	final String? ryUserId = jsonConvert.convert<String>(json['ryUserId']);
	if (ryUserId != null) {
		loginData.ryUserId = ryUserId;
	}
	final int? userId = jsonConvert.convert<int>(json['userId']);
	if (userId != null) {
		loginData.userId = userId;
	}
	final List<int>? auths = jsonConvert.convertListNotNull<int>(json['auths']);
	if (auths != null) {
		loginData.auths = auths;
	}
	final double? timeOut = jsonConvert.convert<double>(json['timeOut']);
	if (timeOut != null) {
		loginData.timeOut = timeOut;
	}
	return loginData;
}

Map<String, dynamic> $LoginDataToJson(LoginData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['yrToken'] = entity.yrToken;
	data['ryToken'] = entity.ryToken;
	data['picUrl'] = entity.picUrl;
	data['nikeName'] = entity.nikeName;
	data['ryUserId'] = entity.ryUserId;
	data['userId'] = entity.userId;
	data['auths'] =  entity.auths;
	data['timeOut'] = entity.timeOut;
	return data;
}